// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './routers/index';


import settings from "./settings"      //  导入  settings 站点开发配置文件
Vue.prototype.$settings = settings;   // 使用  settings 站点开发配置文件

import ElementUI from 'element-ui';    // 在main.js中导入ElementUI
Vue.use(ElementUI);                    // 调用    vue版bs  插件

import "../static/css/reset.css";  // 导入全局css样式

// axios
import axios from 'axios'
// 允许ajax发送请求是附带cookie
axios.defaults.withCredentials = false;
Vue.prototype.$axios = axios; // 把对象挂载vue中

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});


